package com.qc.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qc.dao.EducationDao;
import com.qc.entity.EducationEntity;
import com.qc.service.EducationService;

@Service("educationService")
public class EducationServiceImpl implements EducationService{

    @Resource(name="educationDao")
    private EducationDao educationDao;
    
    @Override
    public int getListEducationCount(String name) {

        return educationDao.getListEducationCount(name);
    }

    @Override
    public List<Map<String, Object>> getAllEducation(String name, int pageNo,int pageSize) {
        
        return educationDao.getAllEducation(name, pageNo, pageSize);
    }

    @Override
    public int saveEducation(EducationEntity educationEntity) {

        return educationDao.saveEducation(educationEntity);
    }

    @Override
    public int deleteEducationId(long id) {

        return educationDao.deleteEducationId(id);
    }

    @Override
    public int updateEducationId(EducationEntity educationEntity) {

        return educationDao.updateEducationId(educationEntity);
    }

}
